package com.yy.young.travel.service;

import com.yy.young.dal.util.Page;
import com.yy.young.travel.model.TravelFile;
import java.util.List;

/**
 * 旅游文件服务接口
 * Created by rookie on 2018-03-23.
 */
public interface ITravelFileService {

    /**
     * 获取数据列表
     * @param travelFile
     * @return
     * @throws Exception
     */
    List<TravelFile> getTravelFileList(TravelFile travelFile) throws Exception;

    /**
     * 根据资源编号和类型查询
     * @param sourceId
     * @param type
     * @return
     * @throws Exception
     */
    List<TravelFile> getTravelFileBySourceIdAndType(String sourceId, String type) throws Exception;

    /**
     * 获取数据列表(分页)
     * @param travelFile
     * @param page 分页参数
     * @return
     * @throws Exception
     */
    List<TravelFile> getTravelFilePage(TravelFile travelFile, Page page) throws Exception;

    /**
     * 根据id获取信息
     * @param id
     * @return
     * @throws Exception
     */
    TravelFile getTravelFile(String id) throws Exception;

    /**
     * 修改
     * @param travelFile
     * @return
     * @throws Exception
     */
    int updateTravelFile(TravelFile travelFile) throws Exception;

    /**
     * 批量删除
     * @param idArr id数组
     * @return
     * @throws Exception
     */
    int deleteTravelFile(String[] idArr) throws Exception;

    /**
     * 删除单条
     * @param id
     * @return
     * @throws Exception
     */
    int deleteTravelFile(String id) throws Exception;

    /**
     * 插入
     * @param travelFile
     * @return
     * @throws Exception
     */
    int insertTravelFile(TravelFile travelFile) throws Exception;

}